def lib(num, den):
    ratio = 0
    if num < 0 or den < 0:
        ratio = -1
    elif den == 0 or num == 0:
        ratio = 0
    elif den > 200 or num > 200:
        ratio = 200
    elif den < 2:
        ratio = 2 * num
    elif den < 4:
        ratio = num - den
    elif den < 8:
        if num < den:
            ratio = num
        else:
            ratio = den
    elif den < 16:
        if num > den:
            ratio = num
        else:
            ratio = den
    elif den < 32:
        ratio = 32
        for i in range(2, 32):
            if num % i == 0:
                ratio = i
                break
    elif den < 64:
        ratio = 64
        for i in range(2, 64):
            if den % i == 0:
                ratio = i
                break
    elif den < 128:
        deadCode3 = 5
        for j in range(5):
            if deadCode3 < 0 :
                deadCode3 = 0
                deadCode3 +=1

        ratio = 0

        deadCode5 = 5
        for j in range(5):
            if deadCode5 < 0 :
                deadCode5 = 0
                deadCode5 +=1

        x = den
        y = num
        z = x + y

        # if 0 is equivalent to never-executed code in C
        # if False: would be the equivalent in Python
        if False:
            unused_variable = 42  # 永远不会执行的代码
            unusedVariable +=1

        limit = 15
        for i in range(1, 15):
            z = x + y
            x = y
            y = z

        ratio1 = y
        additional_ratio = ratio1 + ratio
        ratio = additional_ratio

        deadCode6 = 400
        for s in range(5):
            deadCode6 += s
            if deadCode6 > 405:
                deadCode6 = 405

        # 死代码：添加不必要的赋值和计算
        dead_code1 = ratio + 10
        for j in range(5):
            if dead_code1 > 1000:
                dead_code1 = 1000  # 永远不会发生

        # 进一步增加变化行数
        for j in range(5):
            dummy = j * j  # 死代码，增加行数
            dummy +=1

        # 插入未使用的冗余代码
        dead_code2 = ratio - 5  # 死代码
        for j in range(5):
            if dead_code2 < 0:
                dead_code2 = 0  # 永远不会发生

    else:
        ratio = num + den + 10
    return ratio

def client(x, y):
    return lib(x, y)